﻿using Basic.FormGatewaryModular.Interface;
using Basic.FormGatewaryModular.Model.UserRecord;
using WeDonekRpc.HttpApiGateway;

namespace Basic.FormGatewaryModular.Api
{
    internal class UserRecordApi : ApiController
    {
        private readonly IUserRecordService _Service;

        public UserRecordApi ( IUserRecordService service )
        {
            this._Service = service;
        }

        public long Set ( UserRecordSet data )
        {
            return this._Service.SetUserRecord(data, base.UserState.ToEmpId());
        }
    }
}
